/**
 * 
 */
package edu.inf3.j2ee.framework;

/**
 * @author
 *
 */

import java.sql.SQLException;

public interface IDatabase {

	public void connect()throws InstantiationException, IllegalAccessException, 
			ClassNotFoundException, SQLException;
	public void disconnect();
	public void execQuery(String Query)throws SQLException ;
	
	public boolean nextRecord()throws SQLException;
	public void clearResources() throws SQLException;
	
	public boolean getBool(String column)throws SQLException;
	public int getInt(String column)throws SQLException;
	public double getDouble(String column)throws SQLException;
	public String getString(String column)throws SQLException;
	
	public boolean lockTable(String tbName)throws SQLException ;
	public boolean unlockTable(String tbName)throws SQLException ;
}

